package 博客.适配器模式.接口隔离;

public class Client {
    public static void main(String[] args) {

        //对抽象类进行实现
        VoltageImpl voltage = new VoltageImpl() {
            public void V5() {
                System.out.println("输出5V电压");
            }
        };
        voltage.V5();//输出5V

        //--------------------------------------------------
        //对抽象类进行实现
        VoltageImpl voltage1 = new VoltageImpl() {
            public void V20() {
                System.out.println("输出20V电压");
            }
        };
        voltage1.V20();
    }
}
